package grape.base.rest.client.impl.dict;

import grape.base.rest.client.dict.DictClient;
import grape.base.rest.client.user.UserClient;
import grape.base.rest.dict.mvc.DictInnerController;
import grape.base.rest.user.mvc.UserInnerController;
import grape.base.service.dict.api.IDictService;
import grape.base.service.dict.po.Dict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by yangwei
 * Created at 2020/5/8 17:44
 */
@Component
public class DictClientImpl implements DictClient {


    @Autowired
    private DictInnerController dictInnerController;

    @Override
    public String trans(String type, String key) {
        return dictInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return dictInnerController.support(type);
    }

    @Override
    public Dict getDictById(String id) {
        return dictInnerController.getDictById(id);
    }

    @Override
    public Dict getDictByCode(String code) {
        return dictInnerController.getDictByCode(code);
    }
}
